import dayjs from "dayjs";
import utc from "dayjs/plugin/utc"
dayjs.extend(utc);
export function formatUTC(date: string, format: string = "YYYY-MM-DD HH:mm:ss") {
  const resultTime = dayjs.utc(date).utcOffset(8).format(format);
  return resultTime;
}